package teach.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import teach.aistar.mapper.AdminMapper;
import teach.aistar.model.entity.Admin;
import teach.aistar.model.entity.User;
import teach.aistar.service.IAdminService;
@Transactional
@Service
public class AdminserviceImpl implements IAdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin login(String uname) {
        return adminMapper.find(uname);
    }
}
